import java.util.Scanner;

/*
  @author: 13813
  @date: 2024/11/7 10:04
*/
public class HomeWork02 {
    public static void main(String[] args) {
        /*
           接收控制台输入的身高，体重，年龄, 输出体脂
           体脂 = (体重 * 1.20 / 身高平方) + 0.23 * 年龄 -5.4;
         */
        Scanner scanner = new Scanner(System.in);

        System.out.println("请输入身高");
        //接收身高(字符串)
        String sg = scanner.nextLine();
        //转换
        double sgg = Integer.parseInt(sg);

        System.out.println("请输入体重");
        //接收体重(字符串)
        String tz = scanner.nextLine();
        //转换
        double tzz = Integer.parseInt(tz);

        System.out.println("请输入年龄");
        //接收年龄(字符串)
        String nl = scanner.nextLine();
        //转换
        double nll = Integer.parseInt(nl);


        double t = (tzz * 1.20 / sgg * sgg) + 0.23 * nll - 5.4;

        System.out.println("体脂：" + t);

    }
}
